/*
 * @Descripttion: 
 * @version: 
 * @Author: xcb
 * @Date: 2021-09-29 11:31:58
 * @LastEditors: xcb
 * @LastEditTime: 2022-02-22 16:54:05
 */
import { post } from './http'
import { get,formpost } from './http'
const api = '/api'
const app = '/app'
// 查询用户通过token
export const getUserByToken = (token) => {
    return formpost('/userRole.gaeaway',token,'user');
} //获取用户信息

// 登录
export const login = (obj) => {
    return post(`${api}/user/loginApp.gaeaway`,obj);
}
// 获取方案树
export const planTree = (obj) => {
    return post(`${app}/t-base-layer-plan/tree.gaeaway`,obj,true);
}


// 获取方案树
export const getPlanInfo = (obj) => {
    return post(`${app}/t-base-layer-plan/getLayerPlanById.gaeaway`,obj,true);
}


// 获取方案树
export const getPlanLayers = (obj) => {
    return post(`${app}/t-base-layer-plan/layers.gaeaway`,obj,true);
}